home *** CD-ROM | disk | FTP | other *** search
/ PC Elektro 3 / PC-Elektro-3-cd1.bin / DesignWorks Professional Schematic Capture / DesignWorks4Setup.exe / Main / VHDL.RFM < prev    next >
Encoding:
Text File  |  2004-10-16  |  3.9 KB  |  93 lines

  1. {
  2.   VHDL report form for DesignWorks.
  3.   c 1995
  4.   by Capilano Computing Systems Ltd.
  5. }
  6. $CHECK("Design must be in hierarchy pure mode") $FLAT $PHYSICAL
  7. $NOTES
  8. Attribute Fields Used:
  9. VType    - Define local signal and port types (bit, bit_vector.).
  10. VGenericDecl - Define body of generic declarations for components
  11. VGenericInst - Define body of generic declaration of instances
  12. All pins on symbols and all local signals must have VType.
  13. All unconnected pins are assigned "open" signals.
  14. Signals can be labeled with "0", "1", open or aggregates and
  15. not have VType. I borrowed open emitter pin type for the "buffer" attribute
  16.  
  17. Descriptions are placed with each component and entity as comments.
  18.  (for unconnected pins)
  19.  
  20. *** IMPORTANT NOTE ***
  21.  
  22. This netlist script is provided with DesignWorks on an "as is" basis with no guarantee that it will work in any particular environment.  Capilano Computing has no control over the file formats that may be used by these systems.  These scripts have generally been created and tested in conjunction with DesignWorks users and were developed for use with a specific version of the target system.  The third party developer may change formats at any time, and we do not have the resources to track every version of every system on the market.
  23.  
  24. If this script does not appear to generate the format required for your system, we are happy to assist customers in generating the appropriate format.  Please contact us at tech@capilano.com and provide a sample netlist and as much information as you can about the required format.
  25. $END
  26. $CREATEREPORT($DESIGNNAME.vhd) $PROMPT $CREATOR(ttxt)
  27. $HIERARCHY $PURE
  28. $FIND $SIGNALS $NUMPINS(2) $NOT $SIGNAME
  29. $CHECK(Signal names missing - Default names will be assigned if continued) $SIGNALS
  30. $ASSIGNNAMES $SIGNALS $FORMAT(S0)
  31. $COLUMNS(32000)
  32. $ROWS(32000)
  33. ------------------------------------------------------------------------
  34. -- File: $DESIGNNAME.vhd
  35. $FIND $DEVICES &Depth
  36. $SORT $DEVICES &Depth $TYPENAME
  37. $COMBDEVSON
  38. $DEVICES-- entity $TYPENAME
  39. -- VHDL generated by DesignWorks
  40. -- &Designer
  41. -- $DATE $TIME
  42. ------------------------------------------------------------------------
  43. { The following $DEFINECIRCUIT section defines the text to be output
  44.   for each internal circuit. }
  45. $DEFINECIRCUIT
  46. $PINTYPEFORMAT in out out inout out out out out out out in out in out in buffer out
  47. $FIND $SIGNALS
  48. { List components in an architecture }
  49. $FIND $DEVICES &VGenericDecl
  50. $SORT $DEVICES $TYPENAME
  51. $COMBDEVSON
  52. $CONTSTART(            )
  53. $CONTEND(;)
  54. $MAXITEMSPERLINE(1)
  55. $ITEMSEPARATOR(;)
  56. $DEVPINFORMAT$PINNAME: $PINTYPE &VType
  57. $DEVICES    -- &Description$NEWLINE    component $TYPENAME is$NEWLINE        generic(&VGenericDecl);$NEWLINE        port($NEWLINE            $PINS);$NEWLINE    end component;
  58. $FIND $DEVICES $NOT &VGenericDecl
  59. $SORT $DEVICES $TYPENAME
  60. $COMBDEVSON
  61. $DEVICES    -- &Description$NEWLINE    component $TYPENAME is$NEWLINE        port($NEWLINE            $PINS);$NEWLINE    end component;
  62. { List local signals in an architecture }
  63. $FIND $SIGNALS &VType
  64. $SORT $SIGNALS &VType
  65. $SIGNALS    signal $SIGNAME: &VType;
  66. { List body of architecture & instances of components }
  67. begin
  68. $FIND $SIGNALS
  69. $UNNAMEDSIGS(open)
  70. $FIND $DEVICES &VGenericInst
  71. $SORT $DEVICES $TYPENAME
  72. $COMBDEVSOFF
  73. $MAXITEMSPERLINE(255)
  74. $ITEMSEPARATOR(, )
  75. $DEVPINFORMAT$PINNAME=>$SIGNAME
  76. $DEVICES    $DEVNAME: $TYPENAME generic map(&VGenericInst) port map($PINS);
  77. $FIND $DEVICES $NOT &VGenericInst
  78. $SORT $DEVICES $TYPENAME
  79. $DEVICES    $DEVNAME: $TYPENAME port map($PINS);
  80. $END
  81. { List entity and port list of each item in list }
  82. $FIND $SIGNALS
  83. $FIND $DEVICES &Depth
  84. $SORT $DEVICES &Depth $TYPENAME
  85. $COMBDEVSON
  86. $PINTYPEFORMAT in out out inout out out out out out out in out in out in buffer out
  87. $CONTSTART(        )
  88. $CONTEND(;)
  89. $ITEMSEPARATOR(;$NEWLINE)
  90. $DEVPINFORMAT$PINNAME: $PINTYPE &VType
  91. $DEVICES--&Description$NEWLINEentity $TYPENAME is$NEWLINE    port($NEWLINE$MAXITEMSPERLINE(1)        $PINS);$NEWLINEend $TYPENAME;$NEWLINE$NEWLINEarchitecture STRUCTURED of $TYPENAME is$NEWLINE$INTERNALend STRUCTURED;$NEWLINE
  92.  
  93.